<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
　<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>
<script>
    function send(message) {
        $.ajax({
            url:"http://localhost:8081/find?ip="+message,
            type:'GET',
            success:function (data) {
                console.log(data)
                var ta = document.getElementById("responseText");
                ta.value = ta.value + "\n" + data.province+"-" + data.city + "-" + data.des;
            }
        })
    }
</script>
<form onsubmit="return false;">
    <textarea name="message" style="width:400px;height:200px"></textarea>
    <input type="button" value="发送ip" onclick="send(this.form.message.value)">
    <h3>服务端输出</h3>
    <textarea id="responseText" style="width:400px;height: 300px"></textarea>
    <input type="button" onclick="javascript:document.getElementById('responseText').value=''" value="clear">
</form>
</body>
</html>